package com.finesys.backend.service.user;


import com.finesys.backend.common.model.base.BusinessResult;
import com.finesys.backend.common.model.base.PageRequest;
import com.finesys.backend.common.model.base.PageResult;
import com.finesys.backend.common.model.user.UserModel;

import java.util.List;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: CopyRight (c) 2020-2035</p>
 * <p>Company: finesys Co. LTD.</p>
 * <p>Author: lehoon</p>
 * <p>Date: 2021/2/24 12:58</p>
 */
public class UserServiceMock implements UserService {
    public UserServiceMock() {
    }

    @Override
    public BusinessResult<Long> queryUserCount() {
        return new BusinessResult<Long>().unavailable();
    }

    @Override
    public BusinessResult<String> login(String username, String password, String remoteIp) {
        return new BusinessResult<String>().unavailable();
    }

    @Override
    public BusinessResult<UserModel> validateToken(String token) {
        return new BusinessResult<UserModel>().unavailable();
    }

    @Override
    public BusinessResult<UserModel> save(UserModel userModel) {
        return new BusinessResult<UserModel>().unavailable();
    }

    @Override
    public BusinessResult<String> update(UserModel userModel) {
        return new BusinessResult<String>().unavailable();
    }

    @Override
    public BusinessResult<String> delete(String id) {
        return new BusinessResult<String>().unavailable();
    }

    @Override
    public BusinessResult<UserModel> logout(String token) {
        return new BusinessResult<UserModel>().unavailable();
    }

    @Override
    public BusinessResult<PageResult> findPage(PageRequest request) {
        return new BusinessResult<PageResult>().unavailable();
    }

    @Override
    public List<UserModel> findList() {
        return null;
    }

    @Override
    public boolean checkTokenSign(String token, String ip) {
        return false;
    }
}
